public class NullStrategy extends OMStrategy
model, negotiationSession| Constructor and Description |
|---|
NullStrategy()
Empty constructor used for reflexion.
|
NullStrategy(NegotiationSession negotiationSession)
Normal constructor used to initialize the NullStrategy opponent model strategy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpdateOM()
Returns true if the opponent model be updated,
which is in this case if the time is lower than the given
threshold.
|
BidDetails |
getBid(java.util.List<BidDetails> allBids)
Returns a random bid from the give array of similarly
preferred bids.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initialize method to be used by the BOA framework.
|
getBid, getBid, init, setOpponentModelpublic NullStrategy()
public NullStrategy(NegotiationSession negotiationSession)
negotiationSession - symbolizing the negotiation state.public void init(NegotiationSession negotiationSession, OpponentModel model, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
OMStrategyinit in class OMStrategynegotiationSession - state of the negotiation.model - opponent model to which the opponent model strategy applies.parameters - for the opponent model strategy, for example the maximum update time.java.lang.Exception - thrown when initializing the opponent model strategy fails.public BidDetails getBid(java.util.List<BidDetails> allBids)
getBid in class OMStrategyallBids - list of similarly preferred bids.public boolean canUpdateOM()
canUpdateOM in class OMStrategy